﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FourWayClimbingDemo.Chess.Rule
{
    /// <summary>
    /// 失败规则
    /// </summary>
    public class LostRule : IRule
    {
        private Player _player;

        public LostRule(Player player) {
            this._player = player;        
        }

        public bool Execute()
        {
            return _player.IsLost;
        }
     }
}
